import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import JsonParse from '@/components/tools/JsonParse';
import Hash from '@/components/tools/Hash';
import BlogHome from '@/components/blog/Home';
import Article from '@/components/blog/Article';
Vue.use(Router)

export default new Router({
  // mode :history,
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/tools/JsonParse',
      name: 'JsonParse',
      component: JsonParse
    },
    {
      path: '/tools/Hash',
      name: 'Hash',
      component: Hash
    },
    {
      path: '/blog/Home',
      name: 'BlogHome',
      component: BlogHome
    },
    {
      path: '/Article',
      name: 'Article',
      component: Article
    },

  ]
})
